package com.celesea.workflow.core.entity;

import com.celesea.framework.entity.BaseEnum;

/**
 * @author JackYuan
 * @create 2017-11-19 22:48
 */
public enum WorkflowStatus implements BaseEnum {
    DRAFT(0,"草稿"),
    PROCESS(1,"流程中"),
    COMPLETE(2,"完成"),
    END(3,"结束"),
    ERROR(4,"异常"),
    ;
    private int code;
    private String name;

    WorkflowStatus(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
